<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,shrink-to-fit=no">
    <title>登录</title>

<!--    <link rel="stylesheet" type="text/css" href="../static/css/login.css"/>-->
     <link th:href="@{/css/login.css}" rel="stylesheet">

</head>
<body>
<div id="loginDiv">
    <form action="/login" method="POST">

        <p style="color: white;font-weight: bold;padding-top: 8px">测试- 用户名：a  密码：a </p>
        <div class="formInput">用户名<input type="text" name="username" placeholder="请输入用户名"></div>
        <div class="formInput">密&nbsp;&nbsp;&nbsp;&nbsp;码<input type="password" name="passwd" placeholder="请输入密码"></div>
        <!--判断,接收显示错误提示-->
        <div>
            <p style="color: red;font-weight: bold;padding-top: 8px" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
        </div>

        <div class="formInput">
            <input type="submit" value="登录">
        </div>
    </form>
    <p class="copyRight">©<span>2012</span>--<span th:text="${currentYear}+1">2020</span></p>
</div>
</body>
</html>